//
//  ActivityAPI.h
//  RainbowFM
//
//  Created by chenli on 14/12/17.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ActivityAPI : NSObject

/**
 *  活动列表
 *
 *  @param userID        <#userID description#>
 *  @param actStateId    “0”=所有活动状态（默认） “1”=活动预告状态 “2”=活动进行中状态 “3”=活动已结束状态
 *  @param actCategoryId 0”=所有活动分类（默认） “1”=报名活动
 *  @param res           <#res description#>
 */
-(void)fetchActivityListWithUserID:(NSString *)userID actStateID:(NSString *)actStateId actCategoryID:(NSString *)actCategoryId currentPage:(NSString *)start pageSize:(NSString *)count result:(void(^)(NSArray *array,NSString *msg))res;

/**
 *  活动详情
 *
 *  @param actId  <#actId description#>
 *  @param userId <#userId description#>
 *  @param res    <#res description#>
 */
-(void)fetchActivityDetailWithActID:(NSString *)actId userID:(NSString *)userId result:(void(^)(NSDictionary *dict,NSString *msg))res;

/**
 *  报名管理
 *
 *  @param oper   1：添加 2：修改 3：删除
 *  @param actId  <#actId description#>
 *  @param userId <#userId description#>
 *  @param name   <#name description#>
 *  @param sex_   <#sex_ description#>
 *  @param tel_   <#tel_ description#>
 *  @param res    <#res description#>
 */
-(void)applyManageWithOper:(NSString *)oper actID:(NSString *)actId userID:(NSString *)userId voteName:(NSString *)name sex:(NSString *)sex_ tel:(NSString *)tel_ result:(void(^)(BOOL success))res;

/**
 *  获取奖品列表
 *
 *  @param userId <#userId description#>
 *  @param start  <#start description#>
 *  @param count  <#count description#>
 *  @param res    <#res description#>
 */
-(void)fetchPrizeListWithUserID:(NSString *)userId currentPage:(NSString *)start pageSize:(NSString *)count result:(void(^)(NSArray *array,NSString *msg))res;
/**
 *  我的奖品列表
 *
 *  @param userId <#userId description#>
 *  @param start  <#start description#>
 *  @param count  <#count description#>
 *  @param res    <#res description#>
 */
-(void)fetchMyPrizeListWithUserID:(NSString *)userId currentPage:(NSString *)start pageSize:(NSString *)count result:(void(^)(NSArray *array,NSString *msg))res;

/**
 *  获取奖品详情
 *
 *  @param userId <#userId description#>
 *  @param actId  <#actId description#>
 *  @param res    <#res description#>
 */
-(void)fetchPrizeDetailWithUserID:(NSString *)userId actID:(NSString *)actId result:(void(^)(NSDictionary *dict,NSString *msg))res;


-(void)fetchExchangeDetailWithExchID:(NSString *)exchId userID:(NSString *)userId result:(void(^)(NSDictionary *dict,NSString *msg))res;


-(void)submitQuestionWithWithActID:(NSString *)actId userID:(NSString *)userId ansContent:(NSString *)content result:(void(^)(NSArray *array,NSString *msg))res;

@end
